package cn.sytton.taffe.wx.entity;

import cn.sytton.taffe.framework.base.entity.BaseUpdatedEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 微信用户entity sys_weixin_user
 *
 * @author skyrock
 */
@Schema(description = "微信用户")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_weixin_user")
public class WeixinUserEntity extends BaseUpdatedEntity {

    @Schema(description = "openId")
    @TableId(type = IdType.INPUT)
    private String openId;    // openId

    @Schema(description = "unionId")
    private String unionId;    // unionId

    @Schema(description = "用户ID")
    private String userId;    // 用户ID

    @TableField(exist = false)
    private String token;  //jwt token
}
